<template>
<div>
    <van-sticky>
     <BB/>
 </van-sticky>
  <ul>
      <Bl v-for="(v,i) in arr" :key="i" :img="v.img" :brief="v.brief" :brandname="v.brandname" @click="func(brandname)"/>
  </ul>
</div>
</template>

<script>
import BB from "c/cakeC/brandlistbar.vue"
import Bl from "c/cakeC/brandlist.vue"
import {getlink} from "@/api/getapi.js"
export default {
    components:{
        Bl,
        BB
    },
    data(){
        return{
            arr:[
                
                ]
        }
    },
    methods: {
        // func(brandname){
        //     if(brandname=="21cake"){
        //         this.$router.push("/brand")
        //     }
        // }

        
    },
mounted(){
    getlink("/list/data").then((ok)=>{
        this.arr=ok.data.listarr
    })
}
}
</script>

<style>

</style>